package com.ylkj.member.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ylkj.common.entity.UserInfo;
import com.ylkj.member.dao.UserInfoDAO;
import com.ylkj.member.service.UserInfoService;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    private static final Logger logger = LoggerFactory.getLogger(UserInfoServiceImpl.class);

	@Autowired
	private UserInfoDAO userInfoDAO;
	
	@Override
	public void addUserInfo(UserInfo UserInfo) {
		userInfoDAO.addUserInfo(UserInfo);
	}

	@Override
	public void addorUpdateUserInfo(UserInfo UserInfo) {
		userInfoDAO.addorUpdateUserInfo(UserInfo);
	}

	@Override
	public void delUserInfo(UserInfo UserInfo) {
		userInfoDAO.delUserInfo(UserInfo);
	}

	@Override
	public List<UserInfo> getUserInfoByNickName(String nickName) {
		return userInfoDAO.getUserInfoByNickName(nickName);
	}

}
